<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript" language="javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery-ui-1.8.2.custom.js"></script>
<link href="themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />

</head>

<body>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
	$('.mybutton').click(function(){
		$('.mydialog').dialog({
			modal:true,
			draggable: false,
			resizable: false,
			title: 'My Title',
			buttons: {
				'OK': function(){
					$(this).dialog("close");
				}
			}
		});
	});	
});
</script>

<div class="mydialog" style="display:none;">This is my dialog</div>
<br />
<input type="button" value="Show" class="mybutton" />

</body>
</html>
